@extends('WShop::layout')
@section('content')
    @component('WShop::public.header')
        @slot('page_title'){{$page_title}} @endslot
        @slot('btn')
            <a href="{{route('f_Wap_Agent_myAgent')}}" class="mui-pull-right mui-text-bai" style="margin-top: 12px;font-size: 12px;">我的代售</a>
        @endslot
    @endcomponent
    <div class="mui-content mui-scroll-wrapper" id="pullrefresh">
        <div class="mui-scroll">

            <div class="mui-table-view mui-table-view-chevron mui-bottom mui-jifen-duihuan">
                <div class="mui-dongjie-header mui-text-center">
                    <div class="flex">
                        @foreach(get_currency() as $field=>$title)
                        <div class="flex-item mui-text-center">
                            <span class="mui-text-bai">{{$wallet->$field}} </span>
                            <p class="mui-text-bai"> {{$title}} </p>
                        </div>
                        @endforeach
                    </div>

                </div>
                <div class="jifen-duihuan-main">
                    <div class="jifen-duihuan-list bg-fff">
                        <p class="duihuan_header">{{get_currency()['money2']}}</p>
                        <h4>{{get_currency()['money2']}}代售收益</h4>
                        <div >
                            <span class="mui-text-red">+{{get_rule('gw_award1')}}</span>
                            <span style="font-size: 12px;">{{get_currency()['money1']}}</span>
                            <br/>
                            <span class="mui-text-red">+{{get_rule('gw_award2')}}</span>
                            <span style="font-size: 12px;">{{get_currency()['money2']}}</span>
                            {{--<br/>
                            <span class="mui-text-red">+{{get_rule('gw_award3')}}</span>
                            <span style="font-size: 12px;">{{get_currency()['money3']}}</span>--}}
                        </div>
                        <p>满{{get_rule()['gw_agent_need_score']}}有一次代售机会</p>
                        <p>{{get_rule('gw_agent_sales_day')}}天一个周期</p>
                        @if(get_rule('gw_agent_is_open') ==1)
                            <a href="{{route('f_Wap_Agent_xfAgent')}}" class="mui-btn">立即代售</a>
                        @else
                            <a href="javascript:;" class="mui-btn mui-disabled">暂未开放</a>
                        @endif
                    </div>
                    <div class="jifen-duihuan-list bg-fff">
                        <p class="duihuan_header">{{get_currency()['money2']}}</p>
                        <h4>{{get_currency()['money2']}}代售收益</h4>
                        <div >
                            <span class="mui-text-red">+{{get_rule('dh_award1')}}</span>
                            <span style="font-size: 12px;">{{get_currency()['money1']}}</span>
                            <br/>
                            <span class="mui-text-red">+{{get_rule('dh_award2')}}</span>
                            <span style="font-size: 12px;">{{get_currency()['money2']}}</span>
                           {{-- <br/>
                            <span class="mui-text-red">+{{get_rule('dh_award3')}}</span>
                            <span style="font-size: 12px;">{{get_currency()['money3']}}</span>--}}
                        </div>
                        <p>满{{get_rule('dh_agent_need_score')}}有一次代售机会
                            <span style="font-size: 11px;color:red;">(需支付等额{{get_currency()['money1']}})</span></p>
                        <p>{{get_rule('dh_agent_sales_day')}}天一个周期</p>
                        @if(get_rule('dh_agent_is_open') ==1)
                            <a href="{{route('f_Wap_Agent_dhAgent')}}" class="mui-btn">立即代售</a>
                        @else
                            <a href="javascript:;" disabled class="mui-btn mui-disabled">暂未开放</a>
                        @endif
                    </div>
                </div>
            </div>
        </div>
    </div>
    @include('WShop::public.foot_bar',['active'=>'agent'])
@endsection
@push('scripts')
    <script>
    </script>
@endpush